package org.example.types.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 搜索响应
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SearchResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 总数量
     */
    private Integer total;

    /**
     * 搜索结果列表
     */
    private List<SearchResult> results;

    /**
     * 按网盘类型分组的合并链接
     */
    private Map<String, List<MergedLink>> mergedByType;
}